<?php
namespace Amis\dataviewer;

use Amis\Basics\AmisBasics;

class SearchBox extends AmisBasics
{
    public string $type = 'search-box';

    public function className(string $className)
    {
        $this->className = $className;
        return $this;
    }

    /**
     * 是否为 mini 模式
     * @param bool $mini
     * @return $this
     */
    public function mini(bool $mini)
    {
        $this->$mini = $mini;
        return $this;
    }

    /**
     * 是否立即搜索
     * @param bool $searchImediately
     * @return $this
     */
    public function searchImediately(bool $searchImediately)
    {
        $this->searchImediately = $searchImediately;
        return $this;
    }
}